<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>QuantumWalk: include/state.hpp File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QuantumWalk
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">include/state.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class for storing the state of the walker. State space for walker is <img class="formulaInl" alt="$ \mathcal{H}_C\otimes\mathcal{H}_V $" src="form_9.png"/>, where <img class="formulaInl" alt="$ \mathcal{H}_C $" src="form_10.png"/> is <img class="formulaInl" alt="$ d $" src="form_5.png"/>-dimensional coin space, where <img class="formulaInl" alt="$ d $" src="form_5.png"/> is the degree of the graph, and where <img class="formulaInl" alt="$ \mathcal{H}_V $" src="form_11.png"/> is <img class="formulaInl" alt="$\vert V \vert$" src="form_12.png"/>-dimensional position space, where <img class="formulaInl" alt="$ V$" src="form_13.png"/> ist the set of vertices.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;map&gt;</code><br/>
<code>#include &lt;boost/numeric/ublas/vector.hpp&gt;</code><br/>
<code>#include &quot;<a class="el" href="shift_8hpp_source.html">shift.hpp</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="coin_8hpp_source.html">coin.hpp</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for state.hpp:</div>
<div class="dyncontent">
<div class="center"><img src="state_8hpp__incl.png" border="0" usemap="#include_2state_8hpp" alt=""/></div>
<map name="include_2state_8hpp" id="include_2state_8hpp">
<area shape="rect" id="node7" href="shift_8hpp.html" title="Template class for shift operator. It acts in . It reads , where &#160;is a permutation of vertices..." alt="" coords="259,83,331,112"/><area shape="rect" id="node16" href="coin_8hpp.html" title="Template class for coin operator. Coin operator &#160;is a unitary operator in &#45;dimensional Hilbert space..." alt="" coords="380,83,449,112"/></map>
</div>
</div>
<p><a href="state_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstate.html">state&lt; T &gt;</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classstate.html">state</a>&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="state_8hpp.html#a2dbee0f8557d8030d2424ae0a5d9b363">operator*</a> (const <a class="el" href="classshift.html">shift</a>&lt; T &gt; &amp;S, <a class="el" href="classstate.html">state</a>&lt; T &gt; psi)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classstate.html">state</a>&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="state_8hpp.html#a2c36249349847511eb5da9441660e1b5">operator*</a> (const <a class="el" href="classcoin.html">coin</a>&lt; T &gt; &amp;C, <a class="el" href="classstate.html">state</a>&lt; T &gt; psi)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Class for storing the state of the walker. State space for walker is <img class="formulaInl" alt="$ \mathcal{H}_C\otimes\mathcal{H}_V $" src="form_9.png"/>, where <img class="formulaInl" alt="$ \mathcal{H}_C $" src="form_10.png"/> is <img class="formulaInl" alt="$ d $" src="form_5.png"/>-dimensional coin space, where <img class="formulaInl" alt="$ d $" src="form_5.png"/> is the degree of the graph, and where <img class="formulaInl" alt="$ \mathcal{H}_V $" src="form_11.png"/> is <img class="formulaInl" alt="$\vert V \vert$" src="form_12.png"/>-dimensional position space, where <img class="formulaInl" alt="$ V$" src="form_13.png"/> ist the set of vertices. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Kimmo Luoma &lt;kimmo@PHOTON3&gt; </dd></dl>
<dl class="date"><dt><b>Date:</b></dt><dd>Thu Sep 27 16:58:57 2012</dd></dl>
<p>Key of the map matches the vertice and vector corresponds to the internal degrees of freedom e.g. edges. </p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="a2dbee0f8557d8030d2424ae0a5d9b363"></a><!-- doxytag: member="state.hpp::operator*" ref="a2dbee0f8557d8030d2424ae0a5d9b363" args="(const shift&lt; T &gt; &amp;S, state&lt; T &gt; psi)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classstate.html">state</a>&lt;T&gt; operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classshift.html">shift</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>S</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classstate.html">state</a>&lt; T &gt;&#160;</td>
          <td class="paramname"><em>psi</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Action of the shift operator to the state <img class="formulaInl" alt="$ \vert\psi\rangle $" src="form_22.png"/>. <img class="formulaInl" alt="$ \vert\psi'\rangle=S\vert\psi\rangle $" src="form_23.png"/>. This function makes extra copy.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">S</td><td><img class="formulaInl" alt="$ S $" src="form_24.png"/> shift operator. </td></tr>
    <tr><td class="paramname">psi</td><td><img class="formulaInl" alt="$ \vert\psi\rangle $" src="form_22.png"/> state.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><img class="formulaInl" alt="$ \vert\psi'\rangle = S\vert\psi\rangle$" src="form_26.png"/>. </dd></dl>

</div>
</div>
<a class="anchor" id="a2c36249349847511eb5da9441660e1b5"></a><!-- doxytag: member="state.hpp::operator*" ref="a2c36249349847511eb5da9441660e1b5" args="(const coin&lt; T &gt; &amp;C, state&lt; T &gt; psi)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classstate.html">state</a>&lt;T&gt; operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcoin.html">coin</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>C</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classstate.html">state</a>&lt; T &gt;&#160;</td>
          <td class="paramname"><em>psi</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Action of the coin operator to the state <img class="formulaInl" alt="$ \vert\psi\rangle $" src="form_22.png"/>. <img class="formulaInl" alt="$ \vert\psi'\rangle=C\vert\psi\rangle $" src="form_39.png"/>. This function makes extra copy.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">C</td><td>coin operator class</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><img class="formulaInl" alt="$ \vert\psi'\rangle = C\vert\psi\rangle$" src="form_41.png"/>. </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 9 2012 11:47:52 for QuantumWalk by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
